﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace LanDBom.Models.Detailed
{
    public class Find
    {
        LDbaseEntities LD = new LDbaseEntities();
        public List<BOMini> find_BOM(string bian)
        {
            List<BOMini> bom = LD.BOMini.Where(x => x.BOM2_bian == bian).ToList();
            return bom;
        }
        public List<Ndardo> find_Nda()
        {
            List<Ndardo> nda = LD.Ndardo.ToList();
            return nda;
        }
        public List<operational> find_oper(int BOM_gong)
        {
            List<operational> operationals = LD.operational.Where(x => x.OP_ID == BOM_gong).ToList();
            return operationals;
        }
        public List<Applications> find_APP(string app)
        {
            List<Applications> applications = LD.Applications.Where(x => x.AP_bian == app).ToList();
            return applications;
        }
    }
}